package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.sayLove.LoveWall;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface LoveWallRepository extends MongoRepository<LoveWall,String> {
    Page<LoveWall> findByDelFlag(int del_flag, Pageable pageable);
    LoveWall findBy_idAndDelFlag(String _id,int del_flag);
    Page<LoveWall> findByUserIdAndDelFlag(int user_id,int del_flag, Pageable pageable);
}
